package ude.univ.esiag.gon.uchiha.writer;

import ude.univ.esiag.gon.uchiha.operation.Operation;
import ude.univ.esiag.gon.uchiha.publisher.Publisher;
import ude.univ.esiag.gon.uchiha.subscriber.Subscriber;

public class DataWriter {
	private Publisher publisher;
	public DataWriter() {
		publisher = new Publisher();
	}
	public void addSubscriber(Subscriber subscriber){
		publisher.addSubscriber(subscriber);
	}
	public void write(Operation operation){
		publisher.publish(operation);
	}
}
